<template>
<div>
<h1>我是头部</h1>
<button @click='send'>点击我给父组件发送数据</button>
</div>
</template>

<script>
export default {
 name:'HeaderM',
 props:['receive'],
 methods:{
     send(){
         this.receive("我是子组件header传进来的值")
     }
 }
}
</script>


<style>
  
</style>